package com.wfw.service;

import com.wfw.dto.OrderMasterDto;
import com.wfw.model.OrderMaster;

import java.util.List;

public interface OrderService {

    //创建订单
    String create(OrderMasterDto orderMasterDto);

    //查询单个订单
    OrderMasterDto findOne(String orderId);

    //查询订单列表
    List<OrderMaster> findList(String buyerOpenid);

    //取消订单
    OrderMasterDto cancel(OrderMaster orderMaster);

    //完结订单
    OrderMasterDto finish(OrderMasterDto orderMasterDto);

    //支付订单
    OrderMasterDto paid(OrderMasterDto orderMasterDto);
}
